package com.spddr.pmos.repos;

import java.util.List;

import org.joda.time.Period;
import org.springframework.data.jpa.repository.JpaRepository;

import com.spddr.pmos.jpa.ObjectDataStorage;
import com.spddr.pmos.jpa.ObjectDataStorageId;

public interface ObjectDataStorageRepos extends JpaRepository<ObjectDataStorage, ObjectDataStorageId> {
	List<ObjectDataStorage> findByIdObjectType(int objectType);

	List<ObjectDataStorage> findByIdObjectTypeAndIdInterval(int objectType, Period interval);
	
	List<ObjectDataStorage> findByIdObjectTypeAndIdMetric(int objectType, String metric);
}
